/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package zombieville.auxiliares;

import java.awt.Image;
import java.net.URL;
import javax.swing.ImageIcon;
import zombieville.engine.Cenario;

/**
 *
 * @author -Gui-
 */
public class ApoioImagens {

    public static Image carregaImagem(String pathImagem) {

        URL url = Cenario.class.getResource(pathImagem);
        return (new ImageIcon(url)).getImage();
    }
}
